import request from '@/utils/request'

// 查询应用日志列表
export function listAppLog(query) {
  return request({
    url: '/ips/appLog/list',
    method: 'get',
    params: query
  })
}

// 查询应用日志详细
export function getAppLog(id) {
  return request({
    url: '/ips/appLog/' + id,
    method: 'get'
  })
}

// 新增应用日志
export function addAppLog(data) {
  return request({
    url: '/ips/appLog/save',
    method: 'post',
    data: data
  })
}

// 修改应用日志
export function editAppLog(data) {
  return request({
    url: '/ips/appLog/update',
    method: 'put',
    data: data
  })
}

// 删除应用日志
export function delAppLog(id) {
  return request({
    url: '/ips/appLog/remove/' + id,
    method: 'delete'
  })
}

// 导出应用日志
export function exportAppLog(query, id) {
  return request({
    url: '/ips/appLog/export/' + id,
    method: 'get',
    params: query
  })
}
